
def run(params:list[str]):
    from ApiTools import apiTools,apiBase
    try:
        # 向量名称
        vec_name=apiBase.argv(params,1,"proc/extract/tablename")
        # 文档内容
        mes=apiBase.argv(params,2,"hostname(111)")
        fun_name=apiBase.argv(params,3,"doc")
        vectdb = apiTools.load_vec()
        vectdb.load_mes_vec(vec_name,[mes],fun_name,key='')
        return 'load txt ok'
    except Exception as e:
        return f"function error:{e}"
#run([])